// ####################
// # -- SPRITESETS -- #
// ####################

spriteset (spriteset_teahouse, "gfx/teahouse.png") {
	[  0, 0, 64, 39, -31, -8, NOCROP]
}

// #######################
// # -- SPRITELAYOUTS -- #
// #######################

// # Teahouse Building #
// #####################

spritelayout spritelayout_teahouse {
	ground { sprite: GROUNDSPRITE_CONCRETE; }
	building { sprite: spriteset_teahouse; recolour_mode: RECOLOUR_REMAP; palette: PALETTE_USE_DEFAULT; }
}

// #######################
// # -- INDUSTRYTILES -- #
// #######################

item (FEAT_INDUSTRYTILES, item_industry_teahouse_tile) {
	property { substitute: 27; special_flags: bitmask(INDTILE_FLAG_ACCEPT_ALL); }
	graphics { default: spritelayout_teahouse; }
}

// #####################
// # -- TILELAYOUTS -- #
// #####################

// # Teahouse #
// ############

tilelayout item_industry_teahouse_tilelayout {
	0, 0: item_industry_teahouse_tile;
}

// ####################
// # -- INDUSTRIES -- #
// ####################

item (FEAT_INDUSTRIES, item_industry_teahouse) {
	property {
		substitute: INDUSTRYTYPE_COAL_MINE;
		name: string(STR_TEAHOUSE_INDUSTRY_NAME);
		nearby_station_name: string(STR_STATION, string(STR_TOWN), string(STR_TEAHOUSE_INDUSTRY_NAME));
		life_type: IND_LIFE_TYPE_BLACK_HOLE;
		cargo_types:[
			accept_cargo("TEAB")
		];
		layouts:[
			item_industry_teahouse_tilelayout,
		];
		prob_map_gen: 1;
		prob_in_game: 4;
		spec_flags: bitmask(IND_FLAG_ONLY_IN_LARGE_TOWNS);
		map_colour: 89;
	}
}

